package com.zack.designPattern.command;

public class Counter {

	private int count;
	
	public Counter(int initCount){
		this.count = initCount;
		System.out.println("counter >> "+this.count);
	}
	
	public void add(int i){
		this.count+= i;
		System.out.println("counter >> "+this.count);
	}
	
	public void sub(int i){
		this.count-= i;
		System.out.println("counter >> "+this.count);
	}
}
